home *** CD-ROM | disk | FTP | other *** search
/ NeXT Enterprise Objects Framework 1.1 / NeXT Enterprise Objects Framework 1.1.iso / NextDeveloper / Headers / eoadaptors / Oracle7 / OracleDescription.h < prev    next >
Encoding:
Text File  |  1994-09-02  |  1.3 KB  |  36 lines

  1. // OracleDescription.h 
  2. // Copyright (c) 1994, NeXT Computer, Inc.  All rights reserved.
  3.  
  4. #import <eoaccess/eoaccess.h>
  5. #import "OracleChannel.h"
  6.  
  7. // This category on the OracleChannel implements the methods involved in
  8. // reading an EOModel from the database.
  9.  
  10. @interface OracleChannel (ModelDescription)
  11.  
  12. + (NSString *)oracleTableNamesSQL;
  13. + (void)setOracleTableNamesSQL:(NSString *)sql;
  14.     // By default, the Oracle 7 adaptor evaluates the sql:
  15.     //
  16.     // SELECT TABLE_NAME FROM USER_TABLES ORDER BY TABLE_NAME
  17.     //
  18.     // to read a default list of table names in from the database.  If you
  19.     // want a different set of default tables you can set a sql statement here
  20.     // which will be used by all OracleChannels in the application, or you can
  21.     // set a default sql statement through the dwrite:
  22.     //
  23.     // % dwrite Oracle7Adaptor OracleTableNamesSQL "SELECT TABLE_NAME FROM..."
  24.     //
  25.     // The only constraint on the sql is that the there be one item in the
  26.     // select list, and that it selects the set of table names.
  27.     
  28. - (BOOL)readTypesForEntity:(EOEntity *)entity;
  29. - (BOOL)readTypeForAttribute:(EOAttribute *)attribute;
  30. - (NSArray *)describeEntities;
  31. - (NSArray *)describeAttributesForEntity:(EOEntity *)entity;
  32. - (NSArray *)describeRelationshipsForEntity:(EOEntity *)entity;
  33.  
  34. @end
  35.  
  36.